#!/usr/bin/python
# -*- coding: utf-8 -*-
import xbmcplugin
import xbmcaddon
import xbmcgui
import sys

# magic; id of this plugin - cast to integer
thisPlugin = int(sys.argv[1])

addon = xbmcaddon.Addon("plugin.video.whitebox")

list = xbmcgui.ListItem('Первый')
list.setInfo('video', { 'status' : 'LiveTV' })
list.setIconImage(xbmc.translatePath(os.path.join(addon.getAddonInfo('path'),'resources/icons/pervi.png')))
xbmcplugin.addDirectoryItem(thisPlugin,'rtsp://plb.msk.softspb.com/spbtv_v3_1/210_350.sdp',list)

list = xbmcgui.ListItem('НТВ')
list.setInfo('video', { 'status' : 'LiveTV' })
list.setIconImage(xbmc.translatePath(os.path.join(addon.getAddonInfo('path'),'resources/icons/ntv.png')))
xbmcplugin.addDirectoryItem(thisPlugin,'http://213.186.127.42:1935/live/ntv.stream/playlist.m3u8',list)

list = xbmcgui.ListItem('Россия 24')
list.setInfo('video', { 'status' : 'LiveTV' })
list.setIconImage(xbmc.translatePath(os.path.join(addon.getAddonInfo('path'),'resources/icons/russia24.png')))
xbmcplugin.addDirectoryItem(thisPlugin,'rtsp://plb.msk.softspb.com/spbtv_v3_1/30_350.sdp',list)

list = xbmcgui.ListItem('RTR Planeta')
list.setInfo('video', { 'status' : 'LiveTV' })
list.setIconImage(xbmc.translatePath(os.path.join(addon.getAddonInfo('path'),'resources/icons/rtrplaneta.png')))
xbmcplugin.addDirectoryItem(thisPlugin,'mms://live.rfn.ru/rtr-planeta',list)

list = xbmcgui.ListItem('Россия 1')
list.setInfo('video', { 'status' : 'LiveTV' })
list.setIconImage(xbmc.translatePath(os.path.join(addon.getAddonInfo('path'),'resources/icons/russia1.jpg')))
xbmcplugin.addDirectoryItem(thisPlugin,'rtsp://plb.msk.softspb.com/spbtv_v3_1/211_350.sdp',list)

list = xbmcgui.ListItem('Россия 2')
list.setInfo('video', { 'status' : 'LiveTV' })
list.setIconImage(xbmc.translatePath(os.path.join(addon.getAddonInfo('path'),'resources/icons/russia2.jpg')))
xbmcplugin.addDirectoryItem(thisPlugin,'rtsp://plb.msk.softspb.com/spbtv_v3_1/85_350.sdp',list)

list = xbmcgui.ListItem('Бойцовский клуб')
list.setInfo('video', { 'status' : 'LiveTV' })
xbmcplugin.addDirectoryItem(thisPlugin,'rtsp://plb.msk.softspb.com/spbtv_v3_1/228_350.sdp',list)

list = xbmcgui.ListItem('СПОРТ 1')
list.setInfo('video', { 'status' : 'LiveTV' })
xbmcplugin.addDirectoryItem(thisPlugin,'rtsp://plb.msk.softspb.com/spbtv_v3_1/139_350.sdp',list)

list = xbmcgui.ListItem('СПОРТ 2')
list.setInfo('video', { 'status' : 'LiveTV' })
xbmcplugin.addDirectoryItem(thisPlugin,'rtsp://plb.msk.softspb.com/spbtv_v3_1/148_350.sdp',list)

list = xbmcgui.ListItem('Перец')
list.setInfo('video', { 'status' : 'LiveTV' })
list.setIconImage(xbmc.translatePath(os.path.join(addon.getAddonInfo('path'),'resources/icons/perec.jpg')))
xbmcplugin.addDirectoryItem(thisPlugin,'http://84.22.159.203:8120',list)

list = xbmcgui.ListItem('ТНТ')
list.setInfo('video', { 'status' : 'LiveTV' })
list.setIconImage(xbmc.translatePath(os.path.join(addon.getAddonInfo('path'),'resources/icons/tnt.png')))
xbmcplugin.addDirectoryItem(thisPlugin,'rtmp://94.242.221.102/tv/a11.stream swfurl=http://debilizator.tv',list)

list = xbmcgui.ListItem('Рен ТВ')
list.setInfo('video', { 'status' : 'LiveTV' })
list.setIconImage(xbmc.translatePath(os.path.join(addon.getAddonInfo('path'),'resources/icons/rentv.jpg')))
xbmcplugin.addDirectoryItem(thisPlugin,'rtsp://plb.msk.softspb.com/spbtv_v3_1/118_350.sdp',list)

list = xbmcgui.ListItem('CTC')
list.setInfo('video', { 'status' : 'LiveTV' })
list.setIconImage(xbmc.translatePath(os.path.join(addon.getAddonInfo('path'),'resources/icons/sts.png')))
xbmcplugin.addDirectoryItem(thisPlugin,'http://213.186.127.42:1935/live/sts.stream/playlist.m3u8',list)

list = xbmcgui.ListItem('TB3')
list.setInfo('video', { 'status' : 'LiveTV' })
list.setIconImage(xbmc.translatePath(os.path.join(addon.getAddonInfo('path'),'resources/icons/tv3.png')))
xbmcplugin.addDirectoryItem(thisPlugin,'rtsp://plb.msk.softspb.com/spbtv_v3_1/222_350.sdp',list)

list = xbmcgui.ListItem('5 канал')
list.setInfo('video', { 'status' : 'LiveTV' })
list.setIconImage(xbmc.translatePath(os.path.join(addon.getAddonInfo('path'),'resources/icons/5kanal.jpg')))
xbmcplugin.addDirectoryItem(thisPlugin,'http://84.22.159.204:8117',list)

list = xbmcgui.ListItem('ТБН')
list.setInfo('video', { 'status' : 'LiveTV' })
xbmcplugin.addDirectoryItem(thisPlugin,'rtsp://plb.sg.softspb.com/spbtv_v3_1/174_350.sdp',list)

list = xbmcgui.ListItem('MGM')
list.setInfo('video', { 'status' : 'LiveTV' })
xbmcplugin.addDirectoryItem(thisPlugin,'rtsp://plb.msk.softspb.com/spbtv_v3_1/238_350.sdp',list)

list = xbmcgui.ListItem('Дом Кино')
list.setInfo('video', { 'status' : 'LiveTV' })
xbmcplugin.addDirectoryItem(thisPlugin,'rtsp://plb.msk.softspb.com/spbtv_v3_1/215_350.sdp',list)

list = xbmcgui.ListItem('Наука 2.0')
list.setInfo('video', { 'status' : 'LiveTV' })
xbmcplugin.addDirectoryItem(thisPlugin,'rtsp://plb.msk.softspb.com/spbtv_v3_1/248_350.sdp',list)

list = xbmcgui.ListItem('Travel Channel')
list.setInfo('video', { 'status' : 'LiveTV' })
xbmcplugin.addDirectoryItem(thisPlugin,'rtsp://plb.msk.softspb.com/spbtv_v3_1/248_350.sdp',list)

list = xbmcgui.ListItem('Amazing Life')
list.setInfo('video', { 'status' : 'LiveTV' })
xbmcplugin.addDirectoryItem(thisPlugin,'rtsp://plb.msk.softspb.com/spbtv_v3_1/170_350.sdp',list)

list = xbmcgui.ListItem('24 Техно')
list.setInfo('video', { 'status' : 'LiveTV' })
xbmcplugin.addDirectoryItem(thisPlugin,'rtsp://plb.msk.softspb.com/spbtv_v3_1/129_350.sdp',list)

list = xbmcgui.ListItem('Подсекай TV')
list.setInfo('video', { 'status' : 'LiveTV' })
list.setIconImage(xbmc.translatePath(os.path.join(addon.getAddonInfo('path'),'resources/icons/podsekaitv.png')))
xbmcplugin.addDirectoryItem(thisPlugin,'rtmp://217.199.218.151/podsekaiTV/chanelSD',list)

list = xbmcgui.ListItem('МузТВ')
list.setInfo('video', { 'status' : 'LiveTV' })
list.setIconImage(xbmc.translatePath(os.path.join(addon.getAddonInfo('path'),'resources/icons/muztv.png')))
xbmcplugin.addDirectoryItem(thisPlugin,'http://213.186.127.42:1935/live/muztv.stream/playlist.m3u8',list)

list = xbmcgui.ListItem('MTV')
list.setInfo('video', { 'status' : 'LiveTV' })
list.setIconImage(xbmc.translatePath(os.path.join(addon.getAddonInfo('path'),'resources/icons/mtv.jpg')))
xbmcplugin.addDirectoryItem(thisPlugin,'rtsp://plb.msk.softspb.com/spbtv_v3_1/224_350.sdp',list)

list = xbmcgui.ListItem('MTV China')
list.setInfo('video', { 'status' : 'LiveTV' })
list.setIconImage(xbmc.translatePath(os.path.join(addon.getAddonInfo('path'),'resources/icons/mtv_cn.png')))
xbmcplugin.addDirectoryItem(thisPlugin,'http://st-hls.nms.griffith.edu.au/mtvchina/live.m3u8',list)

list = xbmcgui.ListItem('RuTV')
list.setInfo('video', { 'status' : 'LiveTV' })
list.setIconImage(xbmc.translatePath(os.path.join(addon.getAddonInfo('path'),'resources/icons/rutv.jpg')))
xbmcplugin.addDirectoryItem(thisPlugin,'http://213.186.127.42:1935/live/rutv.stream/playlist.m3u8',list)

list = xbmcgui.ListItem('Russian Musicbox')
list.setInfo('video', { 'status' : 'LiveTV' })
list.setIconImage(xbmc.translatePath(os.path.join(addon.getAddonInfo('path'),'resources/icons/rusmusicbox.png')))
xbmcplugin.addDirectoryItem(thisPlugin,'rtmp://musicbox.cdnvideo.ru/musicbox-live/musicbox.sdp',list)

list = xbmcgui.ListItem('A1 HIP-HOP Music Channel')
list.setInfo('video', { 'status' : 'LiveTV' })
list.setIconImage(xbmc.translatePath(os.path.join(addon.getAddonInfo('path'),'resources/icons/a1tv.png')))
xbmcplugin.addDirectoryItem(thisPlugin,'http://a1tv.cdnvideo.ru/a1tv-live/22/playlist.m3u8',list)

list = xbmcgui.ListItem('Дисней')
list.setInfo('video', { 'status' : 'LiveTV' })
list.setIconImage(xbmc.translatePath(os.path.join(addon.getAddonInfo('path'),'resources/icons/disney.png')))
xbmcplugin.addDirectoryItem(thisPlugin,'http://213.186.127.42:1935/live/disney.stream/playlist.m3u8',list)

list = xbmcgui.ListItem('Карусель')
list.setInfo('video', { 'status' : 'LiveTV' })
list.setIconImage(xbmc.translatePath(os.path.join(addon.getAddonInfo('path'),'resources/icons/karusel.png')))
xbmcplugin.addDirectoryItem(thisPlugin,'rtsp://plb.msk.softspb.com/spbtv_v3_1/232_350.sdp',list)

list = xbmcgui.ListItem('2x2')
list.setInfo('video', { 'status' : 'LiveTV' })
xbmcplugin.addDirectoryItem(thisPlugin,'rtsp://plb.msk.softspb.com/spbtv_v3_1/220_350.sdp',list)

list = xbmcgui.ListItem('Мать и Дитя')
list.setInfo('video', { 'status' : 'LiveTV' })
xbmcplugin.addDirectoryItem(thisPlugin,'rtsp://plb.msk.softspb.com/spbtv_v3_1/117_350.sdp',list)

list = xbmcgui.ListItem('Россия Культура')
list.setInfo('video', { 'status' : 'LiveTV' })
list.setIconImage(xbmc.translatePath(os.path.join(addon.getAddonInfo('path'),'resources/icons/kultura.jpg')))
xbmcplugin.addDirectoryItem(thisPlugin,'rtsp://plb.msk.softspb.com/spbtv_v3_1/214_350.sdp',list)

list = xbmcgui.ListItem('FashionTV')
list.setInfo('video', { 'status' : 'LiveTV' })
list.setIconImage(xbmc.translatePath(os.path.join(addon.getAddonInfo('path'),'resources/icons/fashiontv.png')))
xbmcplugin.addDirectoryItem(thisPlugin,'http://st-hls.nms.griffith.edu.au/fashiontv/live.m3u8',list)


# tell xbmc we have finished creating the directory listing
xbmcplugin.endOfDirectory(thisPlugin)
